﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EnumerationTest
{
    public class MyCollection : IEnumerable
    {
        int[] a = { 1, 2, 3 };
        public IEnumerator GetEnumerator()
        {
            foreach (var value in a)
            {
                yield return value;
            }
        }
    }
}
